package com.itstu.pojo.dto;

import java.util.Date;

/**
 * @Author 梁卓
 * @Version 1.0
 * @ClassName MessageDTO
 * @Description TODO
 * @Date 2024/10/09 21:20
 */
public class MessageDTO {

    private String image;

    private Long id;
    private Long from;
    private Long to;
    private Integer type;
    private String content;
    private Date time;

    public MessageDTO() {

    }

    public MessageDTO(String image, Long id, Long from, Long to, Integer type, String content, Date time) {
        this.image = image;
        this.id = id;
        this.from = from;
        this.to = to;
        this.type = type;
        this.content = content;
        this.time = time;
    }

    @Override
    public String toString() {
        return "MessageDTO{" +
                "image='" + image + '\'' +
                ", id=" + id +
                ", from=" + from +
                ", to=" + to +
                ", type=" + type +
                ", content='" + content + '\'' +
                ", time=" + time +
                '}';
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFrom() {
        return from;
    }

    public void setFrom(Long from) {
        this.from = from;
    }

    public Long getTo() {
        return to;
    }

    public void setTo(Long to) {
        this.to = to;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
